package cn.test1;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class MyMathTest {
    MyMath m = new MyMath();

    @Test
    public void testSum() {
        int sum = m.sum(10, 20);
        //参数1 预期值 参数2 实际值
        Assertions.assertEquals(200, sum);
    }

    @Test
    public void testPow() {
        int a = m.pow(2, 2);
        //参数1 预期值 参数2 实际值
        Assertions.assertEquals(4, a);
    }
}
